package com.umpay.privi.model.sys;

import java.io.Serializable;
import java.sql.Timestamp;
import com.umpay.privi.util.ObjectUtil;
import com.umpay.privi.util.StringUtil;

/** 
 * desc:URL资源
 * <p>创建人：Ding Zhe 创建日期：Apr 19, 2013 </p>
 * @version V1.0  
 */
public class Resource implements Serializable {

	private static final long serialVersionUID = 1L;
			
	/**
	 * 资源表主键：资源ID 
	 */
	public static final String RESID = "resId";
		
	//资源ID;	
	private Integer resId;
	//资源的名称 ;	
	private String resName;
	//资源地址，即URL;	
	private String resPath;
	//鉴权类型 0:权限资源，1:公共资源，2:免登陆资源
	private String checkFlag;
	//URL资源描述;	
	private String description;
	//1：运营平台，2：U付企业版;	
	private Short sysId;
	//创建者的用户ID。0表示为系统创建;	
	private String creator;
	//修改人用户编号 ;	
	private String modUser;
	//入库时间;	
	private Timestamp inTime;
	//修改时间;	
	private Timestamp modTime;
	//"0 可用 1 删除";	
	private Short flag;
	
	public void trim(){
		StringUtil.trimObjectFields(this);
	}
	
	@Override
	public String toString() {
		return ObjectUtil.object2LogStr(this);
	}
			
	public Integer getResId(){
		return resId;
	}
			
	public String getResName(){
		return resName;
	}
			
	public String getResPath(){
		return resPath;
	}
			
	public String getDescription(){
		return description;
	}
			
	public Short getSysId(){
		return sysId;
	}
			
	public String getCreator(){
		return creator;
	}
			
	public String getModUser(){
		return modUser;
	}
			
	public Timestamp getInTime(){
		return inTime;
	}
			
	public Timestamp getModTime(){
		return modTime;
	}
			
	public Short getFlag(){
		return flag;
	}
		
				
	public void setResId(Integer resId){
		this.resId = resId;
	}
		
	public void setResName(String resName){
		this.resName = resName;
	}
		
	public void setResPath(String resPath){
		this.resPath = resPath;
	}
		
	public void setDescription(String description){
		this.description = description;
	}
		
	public void setSysId(Short sysId){
		this.sysId = sysId;
	}
		
	public void setCreator(String creator){
		this.creator = creator;
	}
		
	public void setModUser(String modUser){
		this.modUser = modUser;
	}
		
	public void setInTime(Timestamp inTime){
		this.inTime = inTime;
	}
		
	public void setModTime(Timestamp modTime){
		this.modTime = modTime;
	}
		
	public void setFlag(Short flag){
		this.flag = flag;
	}

	public String getCheckFlag() {
		return checkFlag;
	}

	public void setCheckFlag(String checkFlag) {
		this.checkFlag = checkFlag;
	}
}